num = int(input('输入正整数：'))

count = 0
for n in range(1, num):
    if n % 2 == 0:
        count += 1

print(F'有{count}个偶数')
